﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Dukous.Search
{
    [Serializable]
    public class RangeValueSearchFilter : ISearchFilter
    {
        /// <summary>
        /// 
        /// </summary>
        /// <param name="filterName"></param>
        /// <param name="minValue"></param>
        /// <param name="maxValue"></param>
        public RangeValueSearchFilter(string filterName, object minValue, object maxValue)
        {
            this.FilterName = filterName;
            this.MaxValue = maxValue;
            this.MinValue = minValue;
        }

        /// <summary>
        /// 获取 / 设置 最大值
        /// </summary>
        public object MaxValue { get; set; }

        /// <summary>
        /// 获取 / 设置 最小值
        /// </summary>
        public object MinValue { get; set; }

        #region ISearchFilter 成员

        public string FilterName { get; protected set; }

        #endregion

    }
}
